<!DOCTYPE XHTML>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <title>NPAPI File IO test</title>
  <script type="text/javascript" src="../../../closure/base.js"></script>
	<script type="text/javascript" src="../common.js"></script>
  <script type="text/javascript">
	goog.require('goog.testing.jsunit');
	</script>
</head>
<body>
  <script type="text/javascript">
  function testDetectsPlatformAsWindows() {
    assertEquals("windows", plugin.getPlatform());
  }
	
  function testGetPathReturnsFileInPath() {
    var filename = "file";
    assertEquals("C:\\svn\\npapi-file-io\\test\\files\\" + filename, getPath(filename));
  }
  
  function testGetTmpPathGetsTmpPath() {
    assertEquals("C:\\Users\\daw63\\AppData\\Local\\Temp\\", plugin.getTempPath());
  }
  
  function testTmpPathEqualsTempPath() {
    assertEquals(plugin.getTmpPath(), plugin.getTempPath());
  }
  </script>
</body>
</html>
